/*
 * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
 * Licensed under the 【火山方舟】原型应用软件自用许可协议
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at 
 *     https://www.volcengine.com/docs/82379/1433703
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

import { Template } from '../../PuzzleBoard';

export const previewLandscape = {
  width: 800,
  height: 343,
  pieces: [
    {
      path: 'M257 105.168L8 117V14C8 10.6863 10.6863 8 14 8H257V105.168Z',
    },
    {
      path: 'M257 231.457L8 214.927V125.011L257 113.178V231.457Z',
    },
    {
      path: 'M257 239.475V335H14C10.6863 335 8 332.314 8 329V222.944L257 239.475Z',
    },
    {
      path: 'M535.517 168.844L265 179.144V8H574.401L535.517 168.844Z',
    },
    {
      path: 'M786.001 8C789.315 8 792.001 10.6863 792.001 14V159.077L543.824 168.526L582.632 8H786.001Z',
    },
    {
      path: 'M495.349 334.999H265V187.148L533.563 176.923L495.349 334.999Z',
    },
    {
      path: 'M791.998 329C791.998 332.314 789.312 335 785.998 335H503.578L541.869 176.606L791.998 167.083V329Z',
    },
  ],
};

const templates: Record<number, Template[]> = {
  1: [
    {
      width: 788,
      height: 450,
      pieces: [
        {
          path: 'M8 14C8 10.6863 10.6863 8 14 8H774C777.314 8 780 10.6863 780 14V436C780 439.314 777.314 442 774 442H14C10.6863 442 8 439.314 8 436V14Z',
        },
      ],
    },
  ],
  2: [
    {
      width: 450,
      height: 450,
      pieces: [
        {
          path: 'M436 8C439.314 8 442 10.6863 442 14V227.794L8 198.13V14C8 10.6863 10.6863 8 14 8H436Z',
        },
        {
          path: 'M442 235.812V436C442 439.314 439.314 442 436 442H14C10.6863 442 8 439.314 8 436V206.148L442 235.812Z',
        },
      ],
    },
  ],
  3: [
    {
      width: 258,
      height: 450,
      pieces: [
        {
          path: 'M244 8C247.314 8 250 10.6863 250 14V168.611L8 143.177V14C8 10.6863 10.6863 8 14 8H244Z',
        },
        {
          path: 'M250 176.655V276.275L8 305.989V151.221L250 176.655Z',
        },
        {
          path: 'M250 436C250 439.314 247.314 442 244 442H14C10.6863 442 8 439.314 8 436V314.05L250 284.336V436Z',
        },
      ],
    },
    {
      width: 658,
      height: 450,
      pieces: [
        {
          path: 'M644 8C647.314 8 650 10.6863 650 14V268.6L8 320.672V14C8 10.6863 10.6863 8 14 8H644Z',
        },
        {
          path: 'M317.929 442H14C10.6863 442 8 439.314 8 436V328.698L337.007 302.013L317.929 442Z',
        },
        {
          path: 'M649.998 436C649.998 439.314 647.312 442 643.998 442H326L345.169 301.351L649.998 276.626V436Z',
        },
      ],
    },
  ],
  4: [
    {
      width: 800,
      height: 343,
      pieces: [
        {
          path: 'M400.343 163.358L8 206.081V14C8 10.6863 10.6863 8 14 8H386.941L400.343 163.358Z',
        },
        {
          path: 'M786 8C789.314 8 792 10.6863 792 14V120.711L408.296 162.492L394.969 8H786Z',
        },
        {
          path: 'M333.226 335H14C10.6863 335 8 332.314 8 329V214.128L358.26 175.988L333.226 335Z',
        },
        {
          path: 'M792.002 329C792.002 332.314 789.316 335 786.002 335H341.328L366.503 175.091L792.002 128.758V329Z',
        },
      ],
    },
    {
      width: 278,
      height: 450,
      pieces: [
        {
          path: 'M264 8C267.314 8 270 10.6863 270 14V96.8711L8 129.041V14C8 10.6863 10.6863 8 14 8H264Z',
        },
        {
          path: 'M270 238.207L8 218.67V137.101L270 104.932V238.207Z',
        },
        {
          path: 'M270 246.229V318.164L8 345.957V226.692L270 246.229Z',
        },
        {
          path: 'M270 436C270 439.314 267.314 442 264 442H14C10.6863 442 8 439.314 8 436V354.002L270 326.209V436Z',
        },
      ],
    },
  ],
  5: [
    {
      width: 539,
      height: 450,
      pieces: [
        {
          path: 'M257.797 95.9014L8 156.526V14C8 10.6863 10.6863 8 14 8H271.637L257.797 95.9014Z',
        },
        {
          path: 'M524.998 8C528.312 8 530.998 10.6863 530.998 14V170.658L265.727 96.9863L279.737 8H524.998Z',
        },
        {
          path: 'M531 178.961V326.318L8 308.842V164.759L259.812 103.646L531 178.961Z',
        },
        {
          path: 'M253.529 325.052L286.928 442H14C10.6863 442 8 439.314 8 436V316.847L253.529 325.052Z',
        },
        {
          path: 'M531 334.323V436C531 439.314 528.314 442 525 442H295.248L261.93 325.332L531 334.323Z',
        },
      ],
    },
    {
      width: 623,
      height: 343,
      pieces: [
        {
          path: 'M279.402 97.1045L8 128.321V14C8 10.6863 10.6863 8 14 8H298.133L279.402 97.1045Z',
        },
        {
          path: 'M256.171 207.626L8 236.171V136.374L277.668 105.356L256.171 207.626Z',
        },
        {
          path: 'M229.397 335H14C10.6863 335 8 332.314 8 329V244.224L254.437 215.878L229.397 335Z',
        },
        {
          path: 'M608.996 8C612.31 8 614.996 10.6863 614.996 14V195.575L271.773 172.287L306.307 8H608.996Z',
        },
        {
          path: 'M615.008 203.594V329C615.008 332.314 612.322 335 609.008 335H237.574L270.114 180.192L615.008 203.594Z',
        },
      ],
    },
  ],
  6: [
    {
      width: 526,
      height: 450,
      pieces: [
        {
          path: 'M294.796 137.92L8 164.317V14C8 10.6863 10.6863 8 14 8H315.251L294.796 137.92Z',
        },
        {
          path: 'M512.002 8C515.316 8 518.002 10.6863 518.002 14V117.377L303.016 137.164L323.352 8H512.002Z',
        },
        {
          path: 'M215.821 292.403L8 286.049V172.352L238.057 151.177L215.821 292.403Z',
        },
        {
          path: 'M517.999 301.645L223.879 292.65L246.271 150.42L517.999 125.41V301.645Z',
        },
        {
          path: 'M294.509 302.813L272.597 442H14C10.6863 442 8 439.314 8 436V294.053L294.509 302.813Z',
        },
        {
          path: 'M518 309.647V436C518 439.314 515.314 442 512 442H280.691L302.565 303.06L518 309.647Z',
        },
      ],
    },
    {
      width: 699,
      height: 343,
      pieces: [
        {
          path: 'M441.582 223.309L238.013 234.975L237.42 234.882L237.399 235.01L8 248.156V14C8 10.6863 10.6863 8 14 8H477.856L441.582 223.309Z',
        },
        {
          path: 'M684.998 8C688.312 8 690.998 10.6863 690.998 14V100.699L470.797 98.0439L485.967 8H684.998Z',
        },
        {
          path: 'M691.001 108.7V197.012L449.938 221.869L469.453 106.028L691.001 108.7Z',
        },
        {
          path: 'M221.66 335H14C10.6863 335 8 332.314 8 329V256.169L236.129 243.096L221.66 335Z',
        },
        {
          path: 'M466.117 335H229.758L244.3 242.627L444.727 231.142L466.117 335Z',
        },
        {
          path: 'M690.999 328.999C690.999 332.313 688.313 334.999 684.999 334.999H474.285L452.586 229.639L690.999 205.054V328.999Z',
        },
      ],
    },
  ],
  7: [
    {
      width: 532,
      height: 450,
      pieces: [
        {
          path: 'M248.632 124.649L8 107.607V14C8 10.6863 10.6863 8 14 8H257.848L248.632 124.649Z',
        },
        {
          path: 'M517.999 8C521.313 8 523.999 10.6863 523.999 14V144.153L256.609 125.215L265.869 8H517.999Z',
        },
        {
          path: 'M298.773 136.222L290.335 271.428L8 284.311V115.628L298.773 136.222Z',
        },
        {
          path: 'M279.691 442H14C10.6863 442 8 439.314 8 436V292.319L289.835 279.459L279.691 442Z',
        },
        {
          path: 'M523.999 152.174V238.529L301.109 227.218L306.753 136.787L523.999 152.174Z',
        },
        {
          path: 'M524 246.54V332.834L295.246 321.224L300.614 235.202L524 246.54Z',
        },
        {
          path: 'M524.001 340.844V436C524.001 439.314 521.315 442 518.001 442H287.707L294.746 329.209L524.001 340.844Z',
        },
      ],
    },
    {
      width: 800,
      height: 343,
      pieces: [
        {
          path: 'M257 105.168L8 117V14C8 10.6863 10.6863 8 14 8H257V105.168Z',
        },
        {
          path: 'M257 231.457L8 214.927V125.011L257 113.178V231.457Z',
        },
        {
          path: 'M257 239.475V335H14C10.6863 335 8 332.314 8 329V222.944L257 239.475Z',
        },
        {
          path: 'M535.517 168.844L265 179.144V8H574.401L535.517 168.844Z',
        },
        {
          path: 'M786.001 8C789.315 8 792.001 10.6863 792.001 14V159.077L543.824 168.526L582.632 8H786.001Z',
        },
        {
          path: 'M495.349 334.999H265V187.148L533.563 176.923L495.349 334.999Z',
        },
        {
          path: 'M791.998 329C791.998 332.314 789.312 335 785.998 335H503.578L541.869 176.606L791.998 167.083V329Z',
        },
      ],
    },
  ],
  8: [
    {
      width: 348,
      height: 450,
      pieces: [
        { path: 'M151.172 110H8V14C8 10.6863 10.6863 8 14 8H172.853L151.172 110Z' },
        { path: 'M334 8C337.314 8 340 10.6863 340 14V110H159.348L181.028 8H334Z' },
        { path: 'M200.562 221H8V118H178.669L200.562 221Z' },
        { path: 'M340.002 221H208.744L186.852 118H340.002V221Z' },
        { path: 'M151.832 332H8V229H173.726L151.832 332Z' },
        { path: 'M339.998 332H160.008L181.901 229H339.998V332Z' },
        { path: 'M199.757 442H14C10.6863 442 8 439.314 8 436V340H178.076L199.757 442Z' },
        { path: 'M340.001 436C340.001 439.314 337.315 442 334.001 442H207.935L186.254 340H340.001V436Z' },
      ],
    },
    {
      width: 699,
      height: 450,
      pieces: [
        { path: 'M241 140.616L8 160.302V14C8 10.6863 10.6863 8 14 8H241V140.616Z' },
        { path: 'M469 121.354L249 139.939V8H469V121.354Z' },
        { path: 'M685 8C688.314 8 691 10.6863 691 14V102.598L477 120.678V8H685Z' },
        { path: 'M350 313.269L8 312.071V168.33L350 139.436V313.269Z' },
        { path: 'M691 314.464L358 313.297V138.76L691 110.626V314.464Z' },
        { path: 'M229 320.846V442H14C10.6863 442 8 439.314 8 436V320.071L229 320.846Z' },
        { path: 'M455 321.637V442H237V320.873L455 321.637Z' },
        { path: 'M691 322.464V436C691 439.314 688.314 442 685 442H463V321.665L691 322.464Z' },
      ],
    },
  ],
  9: [
    {
      width: 675,
      height: 450,
      pieces: [
        { path: 'M264 90.4863L8 114.05V14C8 10.6863 10.6863 8 14 8H264V90.4863Z' },
        { path: 'M433.234 74.9092L272 89.749V8H440.505L433.234 74.9092Z' },
        { path: 'M203 204.926L8 222.874V122.083L203 104.135V204.926Z' },
        { path: 'M421.29 184.834L211 204.189V103.398L432.353 83.0254L421.29 184.834Z' },
        { path: 'M393.349 442H14C10.6863 442 8 439.314 8 436V230.907L420.408 192.949L393.349 442Z' },
        {
          path: 'M660.999 8C664.313 8.00001 666.999 10.6863 666.999 14V95.9541L438.621 99.3711L448.549 8H660.999Z',
        },
        { path: 'M667 196.835L427.645 200.416L437.751 107.385L667 103.955V196.835Z' },
        { path: 'M667.002 311.669L415.148 315.438L426.774 208.43L667.002 204.835V311.669Z' },
        { path: 'M667 436C667 439.314 664.314 442 661 442H401.398L414.278 323.452L667 319.67V436Z' },
      ],
    },
    {
      width: 370,
      height: 450,
      pieces: [
        { path: 'M209.75 107H8V14C8 10.6863 10.6863 8 14 8H230.793L209.75 107Z' },
        { path: 'M185.885 219.271L8 210.331V115H208.049L185.885 219.271Z' },
        { path: 'M356 8C359.314 8 362 10.6863 362 14V70H225.793L238.972 8H356Z' },
        { path: 'M362.002 136H211.766L224.094 78H362.002V136Z' },
        { path: 'M362 228.122L193.977 219.678L210.062 144H362V228.122Z' },
        { path: 'M220 228.995V325.146L8 338.909V218.341L220 228.995Z' },
        { path: 'M362 236.133V315.931L228 324.63V229.398L362 236.133Z' },
        { path: 'M150 442H14C10.6863 442 8 439.314 8 436V346.928L150 337.71V442Z' },
        { path: 'M362 436C362 439.314 359.314 442 356 442H158V337.19L362 323.947V436Z' },
      ],
    },
  ],
};

export default templates;
